<template>
	<view class="container">
		<view class="top-fixed">
			<view class="top" :style="{height:statusBarHeight+'px',top:statusBarHeight+'px'}"></view>
		</view>
		<view :style="{height:statusBarHeight+'px'}"></view>
	</view>
</template>

<script>
	export default {
		name: 'BarHeader',
		data() {
			return {
				statusBarHeight: 24,
				viptop: 0
			}
		},
		onShow() {
			
		},
		created() {
			let _this = this;
			let systemInfo = uni.getSystemInfoSync();
			_this.statusBarHeight = systemInfo.statusBarHeight;
		},
		methods: {
		}
	}
</script>

<style>
	.top-fixed {
		width: 100%;
		position: fixed;
		background-color: #fff;
		z-index: 1000;
	}
</style>